package com.spider.iceCream;

import com.spider.iceCream.entity.Comments;
import com.spider.iceCream.entity.VideoInfo;
import com.spider.iceCream.spiderComponent.Barrage;
import com.spider.iceCream.spiderComponent.GetBarrage;
import com.spider.iceCream.spiderComponent.parse.GetReply;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.concurrent.Callable;

/**
 * @author Lord
 * @date 2021/7/16 10:11
 */
public class BarrageSpider implements Callable {
    private Integer cid;

    public BarrageSpider(Integer cid) {
        this.cid = cid;
    }
    @Override
    public List<Barrage> call(){
        GetBarrage getBarrage = new GetBarrage();
        return getBarrage.getBarrages(cid);
    }
}
